package com.pinda.service;

import com.pinda.users.entity.PdMember;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author lc
 * @since 2023-06-14
 */
public interface IPdMemberService extends IService<PdMember> {
    /**
     * 用户登录
     * @param pdMember
     * @return
     * @throws Exception
     */
    public PdMember queryMember(PdMember pdMember)throws Exception;

    /**
     * 用户注册
     * @param pdMember
     * @return
     */
    public boolean saveMember(PdMember pdMember);

    /**
     * 获取验证码
     * @param phone
     * @return
     */
    public int getCode(String phone);

}
